package net.web.entity;

import java.sql.Timestamp;

// 评论实体类，映射数据库表
public class BlogComment {
    private int id; // 对应数据库 id，bigint 类型，用 int 接收
    private int blogid; // 关联文章 ID
    private int userid; // 评论用户 ID
    private String content; // 评论内容，text 类型
    private String username; // 评论者名称
    private String authoremail; // 评论者邮箱
    private String userpicture; // 评论者头像
    private Timestamp createdat; // 创建时间
    private Timestamp updatedat; // 更新时间
    private Integer parentid;

    // Getter & Setter 方法，快速生成：IDE 中右键 -> Generate -> Getter and Setter
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public int getBlogid() { return blogid; }
    public void setBlogid(int blogid) { this.blogid = blogid; }

    public int getUserid() { return userid; }
    public void setUserid(int userid) { this.userid = userid; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getAuthoremail() { return authoremail; }
    public void setAuthoremail(String authoremail) { this.authoremail = authoremail; }

    public String getUserpicture() { return userpicture; }
    public void setUserpicture(String userpicture) { this.userpicture = userpicture; }

    public Timestamp getCreatedat() { return createdat; }
    public void setCreatedat(Timestamp createdat) { this.createdat = createdat; }

    public Timestamp getUpdatedat() { return updatedat; }
    public void setUpdatedat(Timestamp updatedat) { this.updatedat = updatedat; }

    public Integer getParentid() { return parentid; }
    public void setParentid(Integer parentid) { this.parentid = parentid; }

    public int getBlogId() { return blogid; }

    public int getAuthorId() { return userid; }
}
